﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Wz.Enum;

namespace Wz.Entities
{
    /// <summary>
    /// 物资采购
    /// </summary>
    public class PurchaseMaterials : BasicAggregateRoot<Guid>
    {
        public string ProName { get; set; }//货物名称
        public int Deleted { get; }//是否删除
        public string ProType { get; set; }//类型
        public string Material { get; set; }//材质
        public string Specs { get; set; }//规格
        public String Productions1 { get; set; }/// 国家
        public String Productions2 { get; set; }/// 省邦
        public int Num { get; set; }//数量
        public string Info { get; set; }//用途描述
        public string ApplyName { get; set; }//申请人
        public DateTime? DeliverTime { get; set; }//支付日期
        public string Remarks { get; set; }//备注
        public DateTime CreateTime { get; set; }//创建时间
        public AuditState State { get; set; }//审批状态
        public string StateName { get; set; }//审批人
        public PurchaseMaterials()
        {

        }
        public PurchaseMaterials(Guid id, DateTime createTime, String creatorName, int deleted, String typeid, String textureid, String specification, String productions1,
            String productions2, int num, DateTime? datereleased, String describe, String remark, AuditState state, String approver, string purchasingName)
        {
            Id = id;
            CreateTime = createTime;
            ApplyName = creatorName;
            Deleted = deleted;
            ProType = typeid;
            Material = textureid;
            Specs = specification;
            Productions1 = productions1;
            Productions2 = productions2;
            Num = num;
            DeliverTime = datereleased;
            Info = describe;
            Remarks = remark;
            State = state;
            StateName = approver;
            ProName = purchasingName;
        }
    }
}
